/*
 * @Author: cooper
 * @Date: 2025-04-03 11:23:56
 * @Wechat: cmd_develop
 * @Description:
 */
#ifndef __UTILS
#define __UTILS

#include "common.h"

unsigned char getCheckSum(unsigned char *buffer, unsigned char size);
unsigned char getCheckSumMAXIM(unsigned char *buffer, unsigned char size);
u16 usMBCRC16(u8 *pucFrame, u8 usLen);
u8 status_changed(u8 tool[], u8 new[]);
u8 check_pos(u16 rx_pos1, u16 rx_pos2, u16 rx_pos3, u16 rx_pos4, u32 distant, u8 is_paw);
u8 pos_convert_pipeL(u8 pos, u8 is_k_version);
u8 pipe_convert_pos(u8 pipe, u8 is_k_version);
extern char json_str[100];
void REBOOT(void);
void TEST_TASK(void);
#endif
